
const request = require('../../../../utils/request');

Page({
    data: {
        activity: '',
        imgUrl:request.imgUrl
    },
    onLoad: function() {
        request.HttpRequst(true,'activities',false,'',{},"POST",false,res => {
            console.log(res)
            this.setData({
                activity: res.data.data
            })
        })
    },
    onReady: function(){
        wx.setNavigationBarTitle({
            title: '活动'
        })
    },
    goDetail(e) {
        console.log(e)
        wx.navigateTo({
            url: 'detail/detail?id='+e.currentTarget.dataset.id
        })
    }
})